home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
ptv1n2.arc
/
BSOUND.BAS
< prev
next >
Wrap
BASIC Source File
|
1990-06-14
|
922b
|
42 lines
'**** BSOUND.BAS - demonstrates BSound for PC Techniques
'Copyright (c) 1990 Ethan Winer
DEFINT A-Z
PRINT "First let's make an outer-space sound"
FOR X = 1 TO 6
FOR Y = 1 TO 2
CALL BSound(Y * 100, 1)
CALL BSound(1000 - Y * 10, 1)
NEXT
NEXT
PRINT "No big deal, right?"
CALL Pause(20)
PRINT "Okay, so now we'll play a familiar tune"
FOR X = 1 TO 10
READ Frequency, Duration
CALL BSound(Frequency, Duration)
NEXT
PRINT "Well, close--but something's still not quite right."
CALL Pause(40)
RESTORE
PRINT "I've got it: we need some vibrato! How's this?"
FOR X = 1 TO 10
READ Frequency, Duration
FOR Y = 1 TO Duration \ 2
CALL BSound(Frequency + 10, 1)
CALL BSound(Frequency - 10, 1)
NEXT
NEXT
PRINT "That's the ticket!"
DATA 523, 16, 1047, 16, 988, 8, 784, 4, 880, 4, 988, 8, 1047, 8
DATA 523, 16, 880, 16, 784, 24